Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change default validation stringency to SILENT and make common option… #793

Merged
merged 2 commits into from
Mar 1, 2022

Conversation

tfenne
Copy link
Member

@tfenne tfenne commented Feb 27, 2022

…s more easily accessible at runtime.

@tfenne tfenne requested a review from nh13 February 27, 2022 16:49
class FgBioCommonArgs
( @arg(doc="Use asynchronous I/O where possible, e.g. for SAM and BAM files.") val asyncIo: Boolean = false,
@arg(doc="Default GZIP compression level, BAM compression level.") val compression: Int = 5,
@arg(doc="Directory to use for temporary files.") val tmpDir: DirPath = Paths.get(System.getProperty("java.io.tmpdir")),
@arg(doc="Minimum severity log-level to emit.") val logLevel: LogLevel = LogLevel.Info,
@arg(doc="Validation stringency for SAM/BAM reading.") val samValidationStringency: Option[ValidationStringency] = None
@arg(doc="Validation stringency for SAM/BAM reading.") val samValidationStringency: ValidationStringency = ValidationStringency.STRICT
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm tired of paying an extra 50% for HTSJDK to run decoding and validation when it's not needed. Thoughts?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree. So do we want silent instead of strict?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whoopsie, silly autocomplete. Yes we do.

@codecov-commenter
Copy link

Codecov Report

Merging #793 (0e445b0) into master (4b981f2) will decrease coverage by 0.01%.
The diff coverage is 80.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #793      +/-   ##
==========================================
- Coverage   95.47%   95.45%   -0.02%     
==========================================
  Files         121      121              
  Lines        6866     6870       +4     
  Branches      452      464      +12     
==========================================
+ Hits         6555     6558       +3     
- Misses        311      312       +1     
Flag Coverage Δ
unittests 95.45% <80.00%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
.../scala/com/fulcrumgenomics/cmdline/FgBioMain.scala 83.05% <80.00%> (-0.59%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4b981f2...0e445b0. Read the comment docs.

class FgBioCommonArgs
( @arg(doc="Use asynchronous I/O where possible, e.g. for SAM and BAM files.") val asyncIo: Boolean = false,
@arg(doc="Default GZIP compression level, BAM compression level.") val compression: Int = 5,
@arg(doc="Directory to use for temporary files.") val tmpDir: DirPath = Paths.get(System.getProperty("java.io.tmpdir")),
@arg(doc="Minimum severity log-level to emit.") val logLevel: LogLevel = LogLevel.Info,
@arg(doc="Validation stringency for SAM/BAM reading.") val samValidationStringency: Option[ValidationStringency] = None
@arg(doc="Validation stringency for SAM/BAM reading.") val samValidationStringency: ValidationStringency = ValidationStringency.STRICT
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree. So do we want silent instead of strict?

@nh13 nh13 added the 2.0 label Feb 28, 2022
@tfenne tfenne merged commit 5d82333 into master Mar 1, 2022
@tfenne tfenne deleted the tf_global_option_access branch March 1, 2022 01:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants